//
//  PagedCollectionStyle.swift
//  LiveShow
//
//  Created by dai zhong on 2017/4/17.
//  Copyright © 2017年 company.cn. All rights reserved.
//

import UIKit

struct PagedCollectionStyle {
    
    // collectionView的属性设置
    var aPageRowCout :NSInteger = 2;
    var aPageColumnCount :NSInteger = 3;
    var edgInsets :UIEdgeInsets = UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0);
    var lineSpacing :CGFloat = 10.0;
    var interitemSpacing :CGFloat = 10.0;
    var isPagingEnabled :Bool = true
    var backgroundColor :UIColor = UIColor.white
    var showsHorizontalScrollIndicator :Bool = false
    
    // pageControl的属性设置
    var isShowPageControl :Bool = true
    var pageControlHeight :CGFloat = 20.0;
    var hidesForSinglePage :Bool = true
    var currentPageIndicatorTintColor :UIColor = UIColor.red
    var pageIndicatorTintColor :UIColor = UIColor.blue
}


extension PagedCollectionStyle{

    nonmutating func addNewMethod(){
        print("给结构体扩展一个新的方法 需要添加 nonmutating 关键字")
    }
}










